<?php

 /* @uses       Zend_Form
 * @package    Delcampe
 * @subpackage Form
 */
class Login_Form extends Zend_Form
{
	public $isEditMode=null;
   
    public function init()
    {
        // Set the method for the display form to POST
        $this->setMethod('post');
		
        // Add an title element
        $this->addElement('text', 'nickname', array(
            'label'      => 'User Name:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
        
        $this ->addElement('password', 'password', 
		    	array('label' =>'Password:', 
		    				'required' =>true,
		    				'validators' =>array(
		    					array('validator' =>'StringLength')
		    				)
		    ));
		    
		    // Add the submit button
        $this->addElement('submit', 'submit', array(
            'label'    => 'Publish'            
        ));       
       
    }
}
